package IC.Types;

public class ArrayType extends Type {
	
	public ArrayType(Type elemType){
		super(elemType.getName()+"[]");
		this.elemType = elemType;
	}
	
	public Type getElemType(){
		return this.elemType;
	}	
	
	public boolean subtypeOf(Type t){
		if (t == this) {
			return true;
		}
		else {
			return false;
		}
	}
	
	
	private Type elemType; 
}
